<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>班级管理</title>
    <style>
        table.myTable,th,td{
            border: black solid 1px;
        }
        table.myTable{
            width: 70%;
            font-size: 20px;
            text-align: center;
            margin: auto;
        }
    </style>
</head>
<body style="background-color:lightgray;">
<div style="text-align: center">
    <h1>班级管理</h1>
</div>
<div>
    <form action="/springDormitory/queryClass" method="post" style="float: right;margin-right: 15%">
        <input placeholder="班级名字" name="netClassName" style="margin-top: 20px;width: 150px;height: 30px;" />
        <input placeholder="班主任姓名" name="teacherName" style="margin-top: 20px;width: 150px;height: 30px;" />
        <button type="submit" style="margin-top: 20px;width: 70px;height: 40px;color: whitesmoke;background-color:forestgreen;">查询</button>
    </form>
</div>
<table class="myTable" style="clear: both">
    <thead>
    <tr>
        <th>班级名称</th>
        <th>班主任姓名</th>
        <th>开班时间</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${requestScope.classList}" var="netClass">
        <tr>
            <td>${netClass.netClassName}</td>
            <td>${netClass.teacherName}</td>
            <td>${netClass.establishDate}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div style="width: 100%;padding-left: 80%;margin-top: 2%">
    <button style="width: 70px;height: 40px;font-size: 18px;background-color:green;"><a style="color:whitesmoke;text-decoration: none;" href="/springDormitory/back">返回</a></button>
</div>
</body>
</html>